/*
 * @Author: Li Zengkun
 * @Date: 2022-09-12 19:34:10
 * @LastEditors: Li Zengkun
 * @LastEditTime: 2022-09-13 19:48:09
 * @Description: 
 */
import axios from "axios"

// 删除指定id的评论
const remove = (data) => axios.post('/comment/remove', data)

// 发表新的评论
const release = (data) => axios.post('/comment/release', data)


// 回复评论
const reply = (data) => axios.post('/comment/reply', data)


// 回编辑指定id评论复评论
const edit = (data) => axios.post('/comment/edit', data)


// 获取一篇文章下面的评论列表
const list = (params) => axios.get('/comment/list', { params })

// 获取指定id的评论详情
const detail = (params) => axios.get('/comment/detail', { params })

// 获取最新的评论列表
const recent = (params) => axios.get('/comment/recent', { params })

export default {
    remove,
    release,
    reply,
    edit,
    list,
    detail,
    recent
}